package com.xining.official.core.util;

import java.util.Arrays;

@SuppressWarnings("all")
public class Status {


    public enum SurveyStatus {
        weikais("0001","未开始"),
        diaoc("0002","调查中"),
        jieshu("0003","调查结束");

        private String value,name;


        SurveyStatus(String value,String name){
            this.value=value;
            this.name=name;
        }

        public static SurveyStatus fromValue(String val){
            return Arrays.stream(SurveyStatus.class.getEnumConstants()).filter(s -> StringUtil.equals(s.value,val)).findFirst().get();
        }


        public String getValue() {
            return value;
        }

        public String getName() {
            return name;
        }
    }









}
